<?php
include("../inc/conn.inc");
$hover=4;
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>公司库-企业库-贸易公司库</title>
<link href="/css/body.css" rel="stylesheet" type="text/css" />
<link href="/css/link.css" rel="stylesheet" type="text/css" />
<link href="/css/head.css" rel="stylesheet" type="text/css" />
<link href="/Company/css/main.css" rel="stylesheet" type="text/css" />
<link href="/css/foot.css" rel="stylesheet" type="text/css" />
<script language="javascript">
function list(idstr){
	var name1="subtree"+idstr;
	var name2="img"+idstr;
	var objectobj=document.getElementById(name1);
	var imgobj=document.getElementById(name2);
	
	if(objectobj.style.display=="none"){
		for(i=1;i<10;i++){
			var name3="img"+i;
			var name="subtree"+i;
			var o=document.getElementById(name);
			if(o!=undefined){
				o.style.display="none";
				var image=document.getElementById(name3);
				image.src="/images/ico04.gif";
			}
		}
		objectobj.style.display="";
		imgobj.src="/images/ico03.gif";
	}
	else{
		objectobj.style.display="none";
		imgobj.src="/images/ico04.gif";
	}
}
</script>
</head>
<body>
<?php include("../inc/head_top.php")?>
<?php include("../inc/index_search.php")?>
<?php include("../inc/menu.php");?>
<div id="mian" style="clear: both;margin-top: 20px;margin-bottom: 20px;" class="side" align="center">
<script type="text/javascript">/*960*90，创建于2011-3-9*/ var cpro_id = 'u403357';</script><script src="http://cpro.baidu.com/cpro/ui/c.js" type="text/javascript"></script>
</div>
<div id="mian">
<div class="title side downside6">您所在的位置： <a href="/">首页</a> &gt;&gt; 公司库</div>
<div class="leftmain">
<div class="left side">
<div class="title b"><a href="/company/tuijian.php" target="_blank">推荐企业</a></div>
<div class="ComInfo2">

<div id="demo" style="overflow:hidden;height:169px; width:100%" align="left"> 
	<div id="demo1"><ul>
<?php 
$rs=@mysql_query("select id,m_user,m_cname,m_type from member where m_sh=1 and m_mode=1 and m_type=6 and m_top_tj=1 order by m_endtime desc");
while($row=@mysql_fetch_array($rs)){
if($row[m_type]==6){
   $m_url="http://$row[m_user].sandib2b.cn";
}else{
   $m_url="/cn/template/$row[m_user]/";
}
?>
<li><a href="<?=$m_url?>" target="_blank"><?=mb_substr($row[m_cname],0,16,'utf-8')?></a></li>
<?php }
?></ul>
</div>
	<div id=demo2 ></div>
</div>

</div>
</div>
<div class="LBbox side">
  <a href="http://www.yazhiju.com/" target="_blank"><img src="../images/512x300_1277174004245.jpg" width="460" height="206" border="0" /></a></div>
<div class="onl"></div>
<div class="Class side topside6">
<DIV id=body>
<DIV id=title> 工业品 </DIV>


<DIV class=cont_1>
<?php
$c_rs=@mysql_query("select id,cat_name from catalog where big_name_id='1' and dj=1 order by id asc");
$n=1;
while($c_row=@mysql_fetch_array($c_rs)){
if($n==7){
?>
<div id='subtree1' style='display:none;'>
<?php }?>
<UL class="ul_1 backgray">
<a href="/company-list/<?=$c_row[id]?>/1.html" class=link_1 target="_blank"><?=$c_row[cat_name]?></a>
<LI style="MARGIN-TOP:7px">
<?php 
    $c_rs2=@mysql_query("select id,cat_name from catalog where cat_id='$c_row[id]' order by id asc limit 10 ");
	while($c_row2=@mysql_fetch_array($c_rs2)){?><a href="/company-list/<?=$c_row2[id]?>/1.html" class="link_2" target="_blank"><?=$c_row2[cat_name]?></a> | <?php }?><a href="/company-list/<?=$c_row[id]?>/1.html" class=link_1 target="_blank">更多</a></LI>
  </UL>
<?php 
$n++;
}
if($n>6){?>
</div><div class="onl"></div>
<div align="right" style="padding-right:20px;"><a href="javascript:" onClick="list('1');"><img src="/images/ico04.gif" name="img1" id="img1"  border="0"/></a></div>
<?php }?>
<div class="onl"></div>
</DIV>
  
  
<DIV id=title> 消费品 </DIV>
<DIV class=cont_1>
<?php
$c_rs=@mysql_query("select id,cat_name from catalog where big_name_id=2 and dj=1 order by id asc");
$n=1;
while($c_row=@mysql_fetch_array($c_rs)){
if($n==7){
?>
<div id='subtree2' style='display:none;'>
<?php }?>
<UL class="ul_1 backgray">
<a href="/company-list/<?=$c_row[id]?>/1.html" class=link_1 target="_blank"><?=$c_row[cat_name]?></a>
<LI style="MARGIN-TOP:7px">
<?php 
    $c_rs2=@mysql_query("select id,cat_name from catalog where cat_id='$c_row[id]' order by id asc limit 10 ");
	while($c_row2=@mysql_fetch_array($c_rs2)){?><a href="/company-list/<?=$c_row2[id]?>/1.html" class="link_2" target="_blank"><?=$c_row2[cat_name]?></a> | <?php }?><a href="/company-list/<?=$c_row[id]?>/1.html" class=link_1 target="_blank">更多</a></LI>
  </UL>
<?php 
$n++;
}
if($n>6){?> 
</div><div class="onl"></div>
<div align="right" style="padding-right:20px;"><a href="javascript:" onClick="list('2');"><img src="/images/ico04.gif" name="img2" id="img2"  border="0"/></a></div>
<?php }?>
<div class="onl"></div>
</DIV>



<DIV id=title> 农业 </DIV>
<DIV class=cont_1>
<?php
$c_rs=@mysql_query("select id,cat_name from catalog where big_name_id=3 order by id asc  limit 6");
while($c_row=@mysql_fetch_array($c_rs)){
?>
<UL class="ul_1 backgray">
<a href="/company-list/<?=$c_row[id]?>/1.html" class=link_1 target="_blank"><?=$c_row[cat_name]?></a>
<LI style="MARGIN-TOP:7px">
<?php 
    $c_rs2=@mysql_query("select id,cat_name from catalog where cat_id='$c_row[id]'  limit 10 ");
	while($c_row2=@mysql_fetch_array($c_rs2)){?><a href="/company-list/<?=$c_row2[id]?>/1.html" class="link_2" target="_blank"><?=$c_row2[cat_name]?></a> | <?php }?><a href="/company-list/<?=$c_row[id]?>/1.html" class=link_1 target="_blank">更多</a></LI>
  </UL>
<?php }?> 
<div class="onl"></div>
</DIV>

<DIV id=title> 原材料 </DIV>
<DIV class=cont_1>
<?php
$c_rs=@mysql_query("select id,cat_name from catalog where big_name_id=4 and dj=1 order by id asc  limit 6");
while($c_row=@mysql_fetch_array($c_rs)){
?>
<UL class="ul_1 backgray">
<a href="/company-list/<?=$c_row[id]?>/1.html" class=link_1 target="_blank"><?=$c_row[cat_name]?></a>
<LI style="MARGIN-TOP:7px">
<?php 
    $c_rs2=@mysql_query("select id,cat_name from catalog where cat_id='$c_row[id]' order by id asc limit 10 ");
	while($c_row2=@mysql_fetch_array($c_rs2)){?><a href="/company-list/<?=$c_row2[id]?>/1.html" class="link_2" target="_blank"><?=$c_row2[cat_name]?></a> | <?php }?><a href="/company-list/<?=$c_row[id]?>/1.html" class=link_1 target="_blank">更多</a></LI>
  </UL>
<?php }?> 
<div class="onl"></div>
</DIV>
<DIV id=title> 商业服务 </DIV>
<DIV class=cont_1>
<?php
$c_rs=@mysql_query("select id,cat_name from catalog where big_name_id=5 order by c_top_tj desc, id asc");
$n=1;
while($c_row=@mysql_fetch_array($c_rs)){
if($n==7){
?>
<div id='subtree5' style='display:none;'>
<?php }?>
<UL class="ul_1 backgray">
<a href="/company-list/<?=$c_row[id]?>/1.html" class=link_1 target="_blank"><?=$c_row[cat_name]?></a>
<LI style="MARGIN-TOP:7px">
<?php 
    $c_rs2=@mysql_query("select id,cat_name from catalog where cat_id='$c_row[id]' order by id asc limit 8");
	while($c_row2=@mysql_fetch_array($c_rs2)){?><a href="/company-list/<?=$c_row2[id]?>/1.html" class="link_2" target="_blank"><?=$c_row2[cat_name]?></a> | <?php }?><a href="/company-list/<?=$c_row[id]?>/1.html" class=link_1 target="_blank">更多</a></LI>
  </UL>
<?php 
$n++;
}
if($n>6){?> 
</div><div class="onl"></div>
<div align="right" style="padding-right:20px;"><a href="javascript:" onClick="list('5');"><img src="/images/ico04.gif" name="img5" id="img5"  border="0"/></a></div>
<?php }?>
<div class="onl"></div>
</DIV>
</DIV>
</div>

<div class="onl"></div>
<div class="onl"></div>
</div>
<div class="rightmain">
  <div class="right side">
  <div class="title b">推荐工业品企业</div>
  <div class="div_4">
    <ul>
      <?php
$m_rs=@mysql_query("select member.id,member.m_user,member.m_cname,member.m_type,member.m_endtime from member inner join catalog on (member.catalog_id1=catalog.id) where member.m_static=1 and member.m_sh=1 and member.m_mode=1 and catalog.big_name_id=1 order by member.id desc limit 0,15");
while($m_row=@mysql_fetch_array($m_rs)){
if($m_row['m_type']==6){
   $m_url="http://$m_row[m_user].sandib2b.cn";
}else{
   $m_url="/cn/template/$m_row[m_user]/";
}
?>
      <li><a href="<?=$m_url?>" target="_blank">
        <?=mb_substr($m_row['m_cname'],0,18,'utf-8')?>
      </a></li>
      <?php }?>
    </ul>
  </div>
</div>
  <div class="onl"></div>
  
  
  <div class="right side topside6">
  <div class="title b">推荐消费品企业</div>
  <div class="div_4">
    <ul>
      <?php
$m_rs=@mysql_query("select member.id,member.m_user,member.m_cname,member.m_type from member inner join catalog on (member.catalog_id1=catalog.id) where member.m_static=1 and member.m_sh=1 and member.m_mode=1 and catalog.big_name_id=2 order by member.id desc limit 15");
while($m_row=@mysql_fetch_array($m_rs)){
if($m_row['m_type']==6){
   $m_url="http://$m_row[m_user].sandib2b.cn";
}else{
   $m_url="/cn/template/$m_row[m_user]/";
}
?>
      <li><a href="<?=$m_url?>" target="_blank">
        <?=mb_substr($m_row['m_cname'],0,18,'utf-8')?>
      </a></li>
      <?php }?>
    </ul>
  </div>
</div>
  <div class="onl"></div>
  
  
  
  <div class="right side topside6">
  <div class="title b">推荐农业企业</div>
  <div class="div_4">
    <ul>
      <?php
$m_rs=@mysql_query("select member.id,member.m_user,member.m_cname,member.m_type from member inner join catalog on (member.catalog_id1=catalog.id) where member.m_static=1 and member.m_sh=1 and member.m_mode=1 and catalog.big_name_id=3 order by member.id desc limit 15");
while($m_row=@mysql_fetch_array($m_rs)){
if($m_row['m_type']==6){
   $m_url="http://$m_row[m_user].sandib2b.cn";
}else{
   $m_url="/cn/template/$m_row[m_user]/";
}
?>
      <li><a href="<?=$m_url?>" target="_blank">
        <?=mb_substr($m_row['m_cname'],0,18,'utf-8')?>
      </a></li>
      <?php }?>
    </ul>
  </div>
</div>
  <div class="onl"></div>
  
  
  <div class="right side topside6">
  <div class="title b">推荐原材料企业</div>
  <div class="div_4">
    <ul>
      <?php
$m_rs=@mysql_query("select member.id,member.m_user,member.m_cname,member.m_type from member inner join catalog on (member.catalog_id1=catalog.id) where member.m_static=1 and member.m_sh=1 and member.m_mode=1 and catalog.big_name_id=4 order by member.id desc limit 15");
while($m_row=@mysql_fetch_array($m_rs)){
if($m_row['m_type']==6){
   $m_url="http://$m_row[m_user].sandib2b.cn";
}else{
   $m_url="/cn/template/$m_row[m_user]/";
}
?>
      <li><a href="<?=$m_url?>" target="_blank">
        <?=mb_substr($m_row['m_cname'],0,18,'utf-8')?>
      </a></li>
      <?php }?>
    </ul>
  </div>
</div>
  <div class="onl"></div>
  
  
  <div class="right side topside6">
  <div class="title b">推荐商业服务企业</div>
  <div class="div_4">
    <ul>
      <?php
$m_rs=@mysql_query("select member.id,member.m_user,member.m_cname,member.m_type from member inner join catalog on (member.catalog_id1=catalog.id) where member.m_static=1 and member.m_sh=1 and member.m_mode=1 and catalog.big_name_id=5 order by member.id desc limit 15");
while($m_row=@mysql_fetch_array($m_rs)){
if($m_row['m_type']==6){
   $m_url="http://$m_row[m_user].sandib2b.cn";
}else{
   $m_url="/cn/template/$m_row[m_user]/";
}
?>
      <li><a href="<?=$m_url?>" target="_blank">
        <?=mb_substr($m_row['m_cname'],0,18,'utf-8')?>
      </a></li>
      <?php }?>
    </ul>
  </div>
</div>
  <div class="onl"></div>
</div>
<div class="onl"></div>
</div>
<div id="mian" style="clear: both;margin-top: 20px;margin-bottom: 20px;" class="side" align="center">
<script type="text/javascript">/*960*90，创建于2011-3-9*/ var cpro_id = 'u403357';</script><script src="http://cpro.baidu.com/cpro/ui/c.js" type="text/javascript"></script>
</div>
<?php include("../inc/foot.php");?>
</BODY>
</HTML>

<script type="text/javascript">/*120*270，创建于2010-12-18*/ var cpro_id = 'u319758';</script><script src="http://cpro.baidu.com/cpro/ui/f.js" type="text/javascript"></script>
<script>
var speed=40;
demo2.innerHTML=demo1.innerHTML
function Marquee()
{
	if(demo2.offsetTop-demo.scrollTop<=0)
		demo.scrollTop-=demo1.offsetHeight;
	else
		demo.scrollTop++;
}
var MyMar=setInterval(Marquee,speed)
demo.onmouseover=function() {clearInterval(MyMar)}
demo.onmouseout=function() {MyMar=setInterval(Marquee,speed)}
</script>